package com.xindacloud.sms.adapter.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author author
 */
@Data
@Builder
@TableName
@AllArgsConstructor
@NoArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
public class SmsAccountTransation implements Serializable {


    /**
     * 主键
     * 主键id
     * isNullAble:0
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 账号用户id
     * isNullAble:0
     */
    private Integer accountUserId;

    /**
     * 交易id
     * isNullAble:0
     */
    private String transationId;

    /**
     * 交易动作，+充值，-扣费
     * isNullAble:1
     */
    private String transationAction;

    /**
     * 交易价格
     * isNullAble:1
     */
    private String transationPrice;

    /**
     * 交易货币
     * isNullAble:1
     */
    private String currency;

    /**
     * 交易时间
     * isNullAble:1,defaultVal:CURRENT_TIMESTAMP
     */
    private java.time.LocalDateTime transationTime;

    /**
     * 操作者
     * isNullAble:0
     */
    private Integer operatorId;
}
